#ifndef __KERN_DRIVER_IDE_H__
#define __KERN_DRIVER_IDE_H__

#include <types.h>

struct ide_device {
	unsigned char valid;	// 0 or 1 (If Device Really Exists)
	unsigned int sets;	// Commend Sets Supported
	unsigned int size;	// Size in Sectors
	unsigned int ramdisk;
	unsigned char model[41];	// Model in String
}; 
void ide_init(void);
bool ide_device_valid(unsigned short ideno);
size_t ide_device_size(unsigned short ideno);

int ide_read_secs(unsigned short ideno, uint32_t secno, void *dst,
		  size_t nsecs);
int ide_write_secs(unsigned short ideno, uint32_t secno, const void *src,
		   size_t nsecs);

#endif /* !__KERN_DRIVER_IDE_H__ */
